{% macro gen_form(form, tag_form) %}
    {% import "_my_wtf_macros.html" as my_wtf_macros %}

    <form id="search-user-form" action="{{ url_for('op_bp.user_protocol_list') }}"
          method="post" class="form" role="form">
        {{ my_wtf_macros.form_field(form.user_id, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.mobile, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.nickname, div_col=4, label_col=4, field_col=7) }}
        <div class="clearfix visible-xs-block visible-sm-block visible-md-block visible-lg-block"></div>

        <div class="pull-right btn-group">
            <span>
                <button type="submit" class="btn btn-info"
                        id="query-user-btn">
                查询
            </button>
            </span>
        </div>
    </form>
{% endmacro %}
